Knowledge Module Syntax

By calling the ExportXML or ExportXMLToFile with the objectName parameter set to "KNOWLEDGEMODULE" you can export the main agenda and options from the Knowledge Module. The format of the XML is the same as Reports, Procedures, and Events, except that you have an <OPTION> tag. Each option corresponds to an option in the information tab of the Knowledge Module Editor. The <OPTION> tag has three attributes the name, type, and value of the option. The type attribute may be omitted when importing the XML. The Expenses sample looks like this:

<?xml version="1.0"?>
<XRKB>
  <OBJECT name="" type="KNOWLEDGEMODULE" category="">
    <OPTION name="CloseConfirmationText" type="STRING" value="Close Application?"/>
    <OPTION name="DebugMode" type="ENUM" value="Standard"/>
    <OPTION name="FinalURL" type="STRING" value=""/>
    <OPTION name="HelpFile" type="STRING" value=""/>
    <OPTION name="IncompleteColor" type="COLOUR" value="#0000FF"/>
    <OPTION name="InvalidColor" type="COLOUR" value="#FF0000"/>
    <OPTION name="JavaNumericTruncation" type="BOOLEAN" value="TRUE"/>
    <OPTION name="RaiseUnassignedErrors" type="BOOLEAN" value="TRUE"/>
    <OPTION name="ShowCloseConfirmation" type="BOOLEAN" value="TRUE"/>
    <OPTION name="ShowLastSelectionMarkers" type="BOOLEAN" value="TRUE"/>
    <OPTION name="SilentODBCconnections" type="BOOLEAN" value="FALSE"/>
    <OPTION name="VersionInfo" type="STRING" value="1,0,0,0"/>
    <MAINAGENDA>
      <CODE>
        @DO Expenses\n
      </CODE>
    </MAINAGENDA>
  </OBJECT>
</XR